<extend name="Public:template" />
<block name="page_header">
<!-- 订单列表页面  -->
<header class="headerSub clearfix">
    <h2>订单列表</h2>
    <a href="{:U('Index/index')}" class="backBtn leftBtn" >返回首页</a>
    <a href="{:U('Cust/index')}" class="rightBtn yellowNorBg">我的小屋</a>
</header>
</block>
<block name="page_body">

<div class="content">
	<!-- 订单列表 -->
	<volist name="list" id="val" empty="暂时没有订单信息">
	<div class="listContentBox clearfix" style="cursor:pointer" action_url="{:U('CustOrder/showDetail',array('order_code'=>$val['order_code']))}">
		<h2 class="blueGraBg">订单号：{$val.order_code}</h2>
		<dl id="order{$val.id}" class="itemContentBox" style="height:110px;">
			<dd class="" >
				<p>
					<ul>
						<li>【下单时间】：{$val.cust_order_time|date="Y-m-d H:i:s",###}</li>
						<li>【订单状态】：{$val.order_status|m_order_status}</li>
						<li>【联系方式】：{$val.cust_name}，{$val.cust_mobile}</li>
						<li>【配送地址】：{$val.cust_address}</li>
					</ul>
				</p>
				<p class="fr">
					<span>
						订单总额：<span class="deepRed">¥{$val.order_amt|number_format=###, 2,'.',''}</span>
						<if condition="$val['order_send_fee'] neq 0">
							(含¥{$val['order_send_fee']|number_format=###, 2,'.',''}运费)
						<else/>
							(免运费)
						</if>
					</span>
				</p>
			</dd>
		</dl>
	</div>
	</volist>
	<div class="clearfix">&nbsp;</div>
</div>
</block>
<block name="script_footer">
<script type="text/javascript">
$(document).ready(function(){
	$(".listContentBox").on("click",function(){
		document.location.href = $(this).attr('action_url');
	})
})
</script>
</block>